package cal.lib.firstusagewidget;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.DisplayMetrics;
import cal.lib.dashboard.Dashboard;

import com.cilheo.R;

public class FirstUsageWidgetExample extends Activity {

	
	
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        DisplayMetrics metrics = new DisplayMetrics(); 
        getWindowManager().getDefaultDisplay().getMetrics(metrics); 
        int widthSize=(int)metrics.widthPixels;
        
        Dashboard dashB=new Dashboard(this, widthSize);
        
        dashB.addItemToDashboard(R.drawable.t1, R.string.hello, Color.GRAY);
        
        setContentView(dashB.build());
        
        
        new FirstUsageWidget(this, R.string.hello, R.string.app_name, 3);
    }
}